﻿using KinonekoSoftware.Foundation.Platform;
#if AVALONIA



#endif

namespace KinonekoSoftware.Platform
{
    partial class NativeApplication
    {

#if LINUX

        
        public string GetSpecialFolder(SpecialFolder folder)
        {
            var uri = folder switch
            {
                SpecialFolder.Documents => Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                SpecialFolder.Downloads => Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Downloads",
                SpecialFolder.Music     => Environment.GetFolderPath(Environment.SpecialFolder.MyMusic),
                SpecialFolder.Video     => Environment.GetFolderPath(Environment.SpecialFolder.MyVideos),
                SpecialFolder.Picture   => Environment.GetFolderPath(Environment.SpecialFolder.MyPictures),

                _ => Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
            };

            return uri;
        }

        public string CheckDirectoryOrCreate(string dir)
        {
            if (string.IsNullOrEmpty(dir))
            {
                throw new ArgumentNullException(nameof(dir));
            }

            Directory.CreateDirectory(dir);

            return dir;
        }

        protected abstract Window CreateMainView();



        public void InstallExceptionHandler()
        {

        }
#endif
    }
}